import {
  useCallback,
  useState,
} from 'react'

export const useUpdate = (): () => void => {
  const [, setState] = useState({})

  return useCallback(() => setState({}), [])
}
